BrickGen = function(w, h, rx, ry, scaleX, scaleY, imgId){
	this.w=w;
	this.h=h;
	this.rx=rx;
	this.ry=ry;
	this.scaleX=scaleX;
	this.scaleY=scaleY;
	this.imgId=imgId;
};

BrickGen.prototype.run = function(x,y){
	var brick = new Brick(x, y, this.w, this.h, this.rx, this.ry, this.scaleX, this.scaleY, this.imgId);
	return brick;
};